home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windows Expert
/
Windows Expert.iso
/
windownt
/
awksrc.zip
/
CONFIG~1
< prev
next >
Wrap
Text File
|
1992-07-06
|
727b
|
33 lines
#! /bin/sh
#
# configure -- produce a config.h from a known configuration
case "$#" in
1) ;;
*) echo "Usage: $0 system_type" >&2
echo "Known systems: `cd config; echo ;ls -C`" >&2
exit 2
;;
esac
if [ -f config/$1 ]; then
sh ./mungeconf config/$1 config.in >config.h
# echo #echo lines to stdout
sed -n '/^#echo /s///p' config/$1
sed -n '/^MAKE_.*/s//s,^### ,,/p' config/$1 >sedscr
if [ -s sedscr ]
then
sed -f sedscr Makefile.in >Makefile
else
cp Makefile.in Makefile
fi
rm -f sedscr
else
echo "\`$1' is not a known configuration."
echo "Either construct one based on the examples in the config directory,"
echo "or copy config.in to config.h and edit it."
exit 1
fi